V2EX  ›  英汉词典

Reference Code

释义 Definition

“reference code”常指参考代码/示例代码:用于对照、学习或作为实现某功能的参考范例的代码。(在某些场景也可指“参考编号/引用代码”,即用于检索或标识的代码。)

发音 Pronunciation

/ˈrɛfərəns koʊd/

例句 Examples

I used the reference code to learn how the function works.
我用参考代码来学习这个函数是如何工作的。

Before we rewrite the module, we compare our implementation with the reference code to make sure the outputs match under edge cases.
在重写这个模块之前,我们会把自己的实现与参考代码进行对比,确保在边界情况下面输出一致。

词源 Etymology

“reference”来自拉丁语 referre(带回、提及、指向),引申为“供查阅/对照的资料”;“code”来自拉丁语 codex(书册、法典)并发展为“编码/代码”。合起来,“reference code”就是“用于对照与查阅的代码”。

相关词 Related Words

文学与作品 Literary Works

  • Clean Code(Robert C. Martin)
  • The Pragmatic Programmer(Andrew Hunt, David Thomas)
  • Design Patterns: Elements of Reusable Object-Oriented Software(Erich Gamma 等)
  • Code Complete(Steve McConnell)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1029 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 17:22 · PVG 01:22 · LAX 09:22 · JFK 12:22
♥ Do have faith in what you're doing.